package com.plr.booker.xml;

import java.io.File;

import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.xml.bind.Unmarshaller;

import org.example.message.OTAAirLowFareSearchRQElement;
import org.example.message.POSType;
import org.example.message.POSTypeExtended;
import org.example.message.SourceType;

public class Pizza2 {
	public static void main(String[] args) {

		
		
		 try {
			 
				File file = new File("POS/PROD.xml");
				JAXBContext jaxbContext = JAXBContext.newInstance(POSTypeExtended.class);
		 
				Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller();
				POSTypeExtended pos = (POSTypeExtended) jaxbUnmarshaller.unmarshal(file);
				System.out.println(pos);
		 
			  } catch (JAXBException e) {
				e.printStackTrace();
			  }
	}
}
